package com.xizi.秋招笔试;

/**
 * @author xizizzz
 * @description: TODO
 * @date 2021-8-11下午 08:11
 */
public class L {
    public static void main(String[] args) {

    }

    public int[][] rotate_img(int[][] mat) {
        int[][] temp = new int[mat.length][mat.length];
        int dst = mat.length - 1;
        for (int i = 0; i < mat.length; i++, dst--) {
            for (int j = 0; j < mat[0].length; j++) {
                temp[j][dst] = mat[i][j];
            }
        }
        return temp;
    }
}
